<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org/"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div sec:authorize="isAuthenticated()">
<h1>v1</h1>v1
    <hr>
    name:<span sec:authentication="name"></span>
    <br>
    auth:
    <span sec:authentication="principal.authorities"></span>
</div>
</body>
</html>